<%--
  Created by IntelliJ IDEA.
  User: asus
  Date: 2021/10/13
  Time: 16:49
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/static/css/common.css">
    <link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/static/css/detail.css">
</head>
<body>
<div id="top">
    <div id="logo">
        <a href="" title="花瓣动漫">花瓣动漫</a></div>
    <div class="loginout">
        <span class="svg_title svg_title_user"></span>
        <a class="loginout_btn2" href="/">登陆</a>
    </div>
</div><!--不要动-->
<header id="nav">
    <a class="nav_button " href="/">首页</a>
    <a class="nav_button " href="/">目录</a>
    <a class="nav_button " href="/">每日推荐</a>
    <a class="nav_button " href="/">最近更新</a>
    <a class="nav_button " href="/">排行榜</a>
    <a class="nav_button nav_button_current">详情</a>
    <form id="top_search_from" class="search_form" action="/search" method="get" onsubmit="return on_top_search_form();">
        <input id="top_search_input" class="search_input" name="query" wrap="SOFT" spellcheck="false" autocapitalize="off" autocomplete="off" autocorrect="off" placeholder="输入关键字" value=""></input>
        <input class="search_submit" class="" type="submit" value="">
        <input type="hidden" name="page" value="1"></form>

    <script type="text/javascript">function on_top_search_form() {
        var value = document.getElementById("top_search_input").value;
        if (value == null || value == "") {
            alert("请输入搜索关键字");
            return false;
        }
    }
    </script>
</header>
</body>
</html>
